﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace ProtoTypeShooter
{
    class MyBullet
    {
        public Texture2D texture;

        public Vector2 position, velocity, origin;

        public bool isVisible;

        public MyBullet (Texture2D bulletTexture)
        {
            texture=bulletTexture;
            isVisible=false;
        }


        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(texture, position, null, Color.White, 0f,origin,1f,SpriteEffects.None,0);
        }


        public void setPosition(int ptX, int ptY)
        {
            position.X = ptX;
            position.Y = ptY;
        }




    }
}
